import VueRouter from 'vue-router';
import HomeContair from "./components/tabbar/HomeContainer.vue";
import MemberContainer from "./components/tabbar/MemberContainer.vue";
import SearchContainer from "./components/tabbar/SearchContainer.vue";
import shopcarContair from "./components/tabbar/ShopCarContainer.vue";
import newslist from "./components/news/newslist.vue";
import newsinfo from "./components/news/newsinfo.vue";
import photoList from "./components/photos/photoList.vue"
import photoinfo from "./components/photos/photoinfo.vue"
var router=new VueRouter({
    routes:[
      {path:"/",redirect:"/home"},
      {path:"/home",component:HomeContair},
      {path:"/member",component: MemberContainer},
      {path:"/shopcar",component:shopcarContair},
      {path:"/search",component:SearchContainer},
      {path:"/home/newslist",component:newslist},
      {path:"/home/newsinfo/:id",component:newsinfo},
      {path :"/home/photolist/",component:photoList},
      {path:'/home/photoinfo/:id',component:photoinfo}
    ],
    linkActiveClass:'mui-active'
})

export default router